package com.wlps.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class OrderInfo {
    @ApiModelProperty(value = "客户id")
    @NotNull
    long clientId;
    @ApiModelProperty(value = "收货人") @NotNull
    private String receiver;
    @ApiModelProperty("操作员id")
    @NotNull
    private long operator;
    @ApiModelProperty(value = "收获地址") @NotNull
    private String shippingAddress;

    @ApiModelProperty(value = "收货人电话") @NotNull
    private String consigneephone;


//    @ApiModelProperty(value = "商品数量")
//    private Long amountOfGoods;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "要求完成日期")
//    @NotNull
    private Date finishDate;

    @ApiModelProperty(value = "资金信息") @NotNull
    private String fundingInformation;

    @ApiModelProperty(value = "备注信息") @NotNull
    private String remark;

    List<OrderBO> orders;
}
